import { dotest, updateData } from '../src/redux/user'

export const urlChange = async ({store,url}) => {
  switch(url) {
    case '/':
      await store.dispatch(dotest())
      break
    case '/login':
      await store.dispatch(updateData({data:123456}))
      break
    default: 
      break
  }
}